package ${filePackageName};

import cn.hutool.crypto.SecureUtil;

/**
 * token系统信息
 * @author ${projectAuthor}
 * @version 1.0
 * @date ${nowDate}
 */
public class Custom {

    public static final int ACCESS_KEY_LENGTH = 32;

    /**
     * 用户名
     */
    private String custName;

    /**
     * 密码
     */
    private String custPass;

    public String getAccessKey() {
        String key = custName+custPass;
        return SecureUtil.md5(key);
    }

    public String getCustName() {
        return custName;
    }

    public String getCustPass() {
        return custPass;
    }

    public Custom(String custName, String custPass) {
        this.custName = custName;
        this.custPass = custPass;
    }
}